<%--
  Created by IntelliJ IDEA.
  User: Alex
  Date: 4/26/11
  Time: 11:09 AM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<div id="${id}" class="rating">
    <input type="hidden" name="rating" value="${rating}"/>
    <g:if test="${rating==null}">
    <img src="<g:resource dir='images' file='0stars.jpg' />" />
    </g:if>
    <g:else>
    <img src="<g:resource dir='images' file='${rating}stars.jpg' />" />
    </g:else>
</div>